package com.sk.bilibili.mapper;

import com.sk.api.annotations.Mapper;
import com.sk.bilibili.bean.Dynamic;
import com.sk.bilibili.dto.DynamicInfo;
import com.sk.bilibili.dto.Page;
import com.sk.bilibili.dto.Res;
import com.sk.bilibili.other.JsonMap;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

@Mapper
public interface DynamicMapper {

    @POST("dynamic/getDynamic")
    Observable<Res<Page<Dynamic>>> getDynamic(@Body JsonMap map);

    @GET("dynamic/getHotDynamic")
    Observable<Res<Page<Dynamic>>> getHotDynamic(@Query("page") Integer page,@Query("size") Integer size);

    @POST("dynamic/getMemberDynamic")
    Observable<Res<Page<Dynamic>>> getMemberDynamic(@Body JsonMap map);

    @POST("dynamic/pageSearch")
    Observable<Res<Page<Dynamic>>> pageSearch(@Body JsonMap map);

}